﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Øving3Blackjack
{
    class DealerCards : List<Card>
    {
        Card hiddenCard;
        Boolean first = true;
        Boolean second = false;

        public void addCard(Card card)
        {
            if (first)
            {
                first = false;
                second = true;
            }
            else if (second)
            {
                hiddenCard = card;
                second = false;
            }

            this.Add(card);
        }

        public Card getCard(int index)
        {
            return this.ElementAt(index);
        }

        public void emptyHand()
        {
            this.RemoveRange(1, this.Count - 1);
            first = true;
            second = false;
        }

    }
}
